#if !defined(AFX_DLGCOUNTDETAIL_H__6C9ED31D_B215_443D_9C2A_D913C1891CB9__INCLUDED_)
#define AFX_DLGCOUNTDETAIL_H__6C9ED31D_B215_443D_9C2A_D913C1891CB9__INCLUDED_

#include "SOURCE\ReadOnlyEdit.h"	// Added by ClassView
#include "SOURCE\NSChartCtrl.h"	// Added by ClassView
#include "SOURCE\BtnST.h"	// Added by ClassView
#include "SearchView.h"


#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgCountDetail.h : header file
//


/////////////////////////////////////////////////////////////////////////////
// CDlgCountDetail dialog

class CDlgCountDetail : public CDialog
{
// Construction
public:
	void SetViewPtr( CSearchView *pView );
	void SetPurposeName(LPTSTR pChPurpose);
	void SetCOMPtr(_CommandPtr m_pComd);
	void SetSQLdaterange(LPTSTR pChSql);
	CDlgCountDetail(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CDlgCountDetail)
	enum { IDD = IDD_DLG_DETAIL };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDlgCountDetail)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CDlgCountDetail)
	virtual BOOL OnInitDialog();
	afx_msg void OnBtnSave2Search();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	CSearchView* m_pSearchView;
	CButtonST m_btnSaveSearch;
	void CountOutline();
	CReadOnlyEdit m_edCountinfo;
	CReadOnlyEdit m_edDaterange;
	void CountDetailofPurpose();
	CHAR m_chPurpose[100];
	CHAR m_chSQLdate[256];
	_CommandPtr m_pCmd;
	CButtonST m_btnOk;
	CNSChartCtrl m_chartDetail;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLGCOUNTDETAIL_H__6C9ED31D_B215_443D_9C2A_D913C1891CB9__INCLUDED_)
